<?php
$sql = "select * from category_book limit 10 ";
	$datas = select_list($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xlmns="http://www.w3.org/1999/xhtml">
<head>
</head>

<body>
<div class="wrapper">
		 <div class="sidebar_search">
		 
					<form>
						<input type="text" onclick="this.value=''" value="search keyword" class="search_input" name="">
						<input type="image" src="images/search.png" class="search_submit">
					</form>
				</div>
				
				<div class="sidebarmenu">
				
					<a href="" class="menuitem submenuheader">Các Loại Sách</a>
					
					<div class="submenu">
						<ul>
					<?php if($datas) foreach ($datas as $data){?>
						<li><a href="<?php echo $data['Link']?> ?gid=<?php echo $data['idCategory']?>"><?php echo $data['NameCategory']?></a></li>
					 <?php } ?>	  
						</ul>
					</div>
					
					
					<a href="" class="menuitem submenuheader">Thêm mới sản phẩm</a>
					<div class="submenu">
						<ul>
						<li><a href="insert_product.php">Thêm sản phẩm</a></li>
						<li><a href="insert_gproduct.php">Thêm nhóm sản phẩm</a></li>
						</ul>
					</div>
					
				</div>
</div>
</body>
</html>